package com.pine.manager.pineframework.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.converters.localdatetime.LocalDateTimeStringConverter;
import com.pine.dao.pineframework.constants.StatusEnum;
import com.pine.manager.core.IntergerCodeEnumConverter;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统配置表导出dto
 * </p>
 *
 * @author pine manage
 * @since 2024-08-20
 */
@Data
public class SysConfigExportDto {

    /**
     * 配置名称
     */
    @ExcelProperty("配置名称")
    private String configName;
    /**
     * 配置key
     */
    @ExcelProperty("配置key")
    private String configKey;
    /**
     * 配置值
     */
    @ExcelProperty("配置值")
    private String configValue;
    /**
     * 状态:0=启用,1=禁用
     */
    @ExcelProperty(value = "状态", converter = IntergerCodeEnumConverter.class)
    private StatusEnum status;
    /**
     * 描述、备注
     */
    @ExcelProperty("描述、备注")
    private String remark;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间", converter = LocalDateTimeStringConverter.class)
    @ColumnWidth(22)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间", converter = LocalDateTimeStringConverter.class)
    @ColumnWidth(22)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
